import turtle
import random

turtle.colormode(255)
n = 0
turtle.speed(0)
turtle.left(50)
while n < 8:
    r = random.randint(0, 255)
    g = random.randint(0, 255)
    b = random.randint(0, 255)
    turtle.fillcolor(r,g,b)
    turtle.begin_fill()
    m = 0
    while m <3:
        turtle.forward(100)
        turtle.left(120)
        m+=1
    turtle.end_fill()
    turtle.left(10)
    n+=1
turtle.done()
